#include <iostream>
#include <cmath>
#include <string>

float get_dist(float v, float t){
    return v*t;
}

int main() {
    // hello world
    std::cout << "Hello, World!" << std::endl;

    // static typed
    int a;
    a = 3;
    std::cout << a << std::endl;

    float speed;
    double time;
    speed = 10.33;
    time = 3.13;

    // function
    float distance;
    distance = get_dist(speed, time);
    std::cout << "distance is: "<< distance << std::endl;

    // if
    if (distance > 100){
        std::cout << "long" << std::endl;
    }
    else if (distance < 2){
        std::cout << "short" << std::endl;
    }
    else{
        std::cout << "middle" << std::endl;
    }

    // for
    for (int i = 0; i < 3; i++){
        std::cout << i << std::endl;
    }

    // library
    std::cout << pow(3.4, 4);
    std::string stringvariable = "stringvalue";

    return 0;
}

